<?php
namespace app\common\model;
use think\Model;
use think\facade\Db;

class Field extends Model
{
    protected $json = ['default_field'];
    // 设置JSON数据返回数组
    protected $jsonAssoc = true;
    public function userrule()
    {
        return $this->belongsTo(UserAuthRule::class, 'auth_id', 'id')->bind(['auth_name'=>'name']);
    }
    
}